<?php
/**[属性管理]
 * @Author: 976123967@qq.com
 * @Date:   2014-08-16 11:36:58
 * @Last Modified by:   chen
 * @Last Modified time: 2014-10-28 22:29:37
 */
class FlagAction extends PublicAction{

	/**
	 * [_initialize 初始化]
	 * @return [type] [description]
	 */
	public function _initialize()
	{
		parent::_initialize();
		$this->model = D('Article');
	}

	/**
	 * [index 属性管理]
	 * @return [type] [description]
	 */
	public  function index()
	{
		if(IS_POST)
		{
			if(!$this->model->set_flag())
				$this->error("请检查Data文件夹的权限");
			$this->success('属性设置成功');
			die;
		}
		$this->assign('flag',C('flag'));
		$this->display();
	}
}
